<html>
    <OBJECT ID="TestOCX" WIDTH="600" HEIGHT="400" CLASSID="CLSID:6F8B309C-14AD-4F53-8E17-AF1594F4933C">
    </OBJECT>  
</html>
<script language="javascript">

function SetScreenNum(varStr)
{
TestOCX.SetScreenNum(varStr); 
}
function Play()
{
TestOCX.Play(-1, "192.168.56.213", 37777, "admin", "admin", 0, 0); 
}
 function StopPlay(varStr)
{
TestOCX.StopPlay(varStr); 
}
function StopAllPlay()
{
TestOCX.StopAllPlay(); 
}
function GetSelPlayIndex()
{
TestOCX.GetSelPlayIndex(); 
}
</script>
//html代码
</br></br>
<a href="javascript:SetScreenNum('9')" >调用OCX的SetScreenNum方法，设置9画面</a> 
<a href="javascript:Play()" >调用OCX的PLAY方法，播放</a>
<a href="javascript:StopPlay('0')" >调用OCX的SetScreenNum方法，停止第1个画面播放</a>
<a href="javascript:StopAllPlay()" >调用OCX的SetScreenNum方法，停止所有画面播放</a>
<a href="javascript:GetSelPlayIndex()" >调用OCX的GetSelPlayIndex方法，得到第几个画面的焦点</a>